// 全部导入
import http from '../utils/http'
/**
 * @parms request 请求地址
 * @parms '/testIp'代表vue-cil中config，index.js中配置的代理  */
// let request = 'http://43.138.224.168/proxy'
let request = "http://localhost:3000"
//  导出请求方法
export default {
	get(path, params) {
		return http.get(`${request + path}`, params)
	},
	post(path, params) {
		return http.post(`${request + path}`, params)
	},
	put(path, params) {
		return http.put(`${request + path}`, params)
	},
	delete(path, params) {
		return http.delete(`${request + path}`, params)
	}
}
